package com.hospital.phyexam.dao;

import com.hospital.phyexam.entity.Phyexam;
import com.hospital.phyexam.entity.PhyexamExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface PhyexamMapper {
    /**
     * 通过学生id查询体检信息
     *
     * @param stuId 学生id
     * @return
     */
    Phyexam findPhyexamByStuId(@Param("stuId") Integer stuId);

    /**
     * 查询 体检的基本信息
     *
     * @return
     */
    List<Phyexam> findPhyexamBasicInfo();

    long countByExample(PhyexamExample example);

    int deleteByExample(PhyexamExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Phyexam record);

    int insertSelective(Phyexam record);

    List<Phyexam> selectByExample(PhyexamExample example);

    Phyexam selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Phyexam record, @Param("example") PhyexamExample example);

    int updateByExample(@Param("record") Phyexam record, @Param("example") PhyexamExample example);

    int updateByPrimaryKeySelective(Phyexam record);

    int updateByPrimaryKey(Phyexam record);
}